package com.lyz.dz.des.controller;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class ss {
    public static void main(String[] args) throws IOException {

        File file = new File("ss");

        System.out.println(file.getAbsolutePath());
        File file1 = new File(file.getAbsolutePath() + "/2.txt");
        FileWriter fileWriter = new FileWriter(file1);
        FileOutputStream fileOutputStream = new FileOutputStream(file1);
        fileOutputStream.write("hhhhoasjdofasodfjioasdfj2342342".getBytes(StandardCharsets.UTF_8));
        fileOutputStream.flush();
        fileOutputStream.close();
    }
}
